package lab02.test12;
//定义圆的属性
public class Circle extends Shape{
    double pai = 3.1415;
    double radius;
    double area;
    double perimeter;

    @Override
    public void  getPerimeter(){
        perimeter = 2*radius*pai;
        System.out.println("圆的周长："+perimeter);
    }
    @Override
    public  void getArea(){
        area = radius*radius*pai;
        System.out.println("圆的面积："+area);
    }
}
